package com.fpc.util;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.HashMap;

//import com.deepoove.poi.XWPFTemplate;



/**
 * 测试�?
 * @author liqi
 *
 */
public class AppTestXWPFTemplate {
	
	 public static void main(String[] args) throws FileNotFoundException, IOException {
			System.out.println("1211112");
			 String dfas=System.getProperty("java.version");
			 System.out.println(dfas);
		 File file=new File("D:\\fpcwork\\fpcwork_test_util\\src\\main\\resources\\template.docx");
		 System.out.println(file);
	/*	XWPFTemplate template = XWPFTemplate.compile("D:\\fpcwork\\fpcwork_test_util\\src\\main\\resources\\template.docx").render(
				  new HashMap<String, Object>(){{
				    put("title", "Hi, poi-tl Word模板引擎");
				}});  
				template.writeAndClose(new FileOutputStream("D:\\fpcwork\\fpcwork_test_util\\src\\main\\resources\\output.docx")); 
				System.out.println(dfas);*/
	   
	    }
}
